import { createStore, combineReducers, applyMiddleware } from 'redux'
import count from './reducer/count'
import list from './reducer/list'
import sagaMiddleware from 'redux-saga'
import rootSaga from './saga2'

let createSaga = sagaMiddleware()

let reducer = combineReducers({
    count,
    list
})

let store = createStore(reducer, applyMiddleware(createSaga))

createSaga.run(rootSaga)

export default store